<div id="bd0">
<br/>
<p class="h4">Useage</p>
<p class="h6">1.Client（eg:phone）</p>
<pre>
set wifi http proxy:
proxy host ： <b>{{.pproxy_host}}</b>
proxy port ： <b>{{.pproxy_port}}</b>

</pre>
<small>android users can use <b>proxyDroid</b> to manager proxys</small>

<p class="h6">2.Server:user interface</p>
<pre>
visit <a href="/">Session List Page</a> to view all the http request through this proxy.
in the session filter form, all text input can use<font color=red>|</font> to enter multiple conditions.
eg user:<input type="text" value="a|b" style="width:40px">,it mean user is a or b.
you can use <b>replay</b> to replay a request.
</pre>

<p class="h6">3.Modify Requests</p>
<div>you can modify http request.GET、POST paramas and http headers.</div>
<div>pproxy use javascript to achieve it:</div>
<pre>
function rewrite(req){
    //you code start<span style="color:blue">
    if(req.host=="www.baidu.com"){
	   req.host="www.163.com"
	   req.host_addr="127.0.0.0:81" // send req to 127.0.0.1:81
	   form_get.add("a","a")
	   //form_post.set("d","a")
	}
	</span>
    // you code end
    return req
}
</pre>
<div><b>req object has these attributes</b>(url=http://www.example.com/album/list?cid=126)：</div>
<pre>
schema : http
host : www.example.com
port : 80
path : /album/list
get: {cid:[123]}
post: {}
username : 
password : 
method: GET
form_get  : {add:function(k,v){},set:function(k,v){},get:function(k){},len:function(){}} 
form_post : {add:function(k,v){},set:function(k,v){},get:function(k){},len:function(){}}

host_addr: #the real host you wish，eg 127.0.0.1:3218
</pre>

<p class="h6">4.Modify Hosts</p>
<pre>
#all port
news.baidu.com 127.0.0.1

#only 81 port match
news.baidu.com:81 127.0.0.1:82

news.163.com 127.0.0.1:8080
</pre>
</div>